<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>NFC / NDEF Library for Proximity APIs: NdefLibrary.Ndef.NdefRecord Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="NdefLibraryLogo.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">NFC / NDEF Library for Proximity APIs
   &#160;<span id="projectnumber">4.1.0</span>
   </div>
   <div id="projectbrief">Easily parse and create NDEF records with the Windows Proximity APIs / Near Field Communication NFC.</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespace_ndef_library.html">NdefLibrary</a></li><li class="navelem"><a class="el" href="namespace_ndef_library_1_1_ndef.html">Ndef</a></li><li class="navelem"><a class="el" href="class_ndef_library_1_1_ndef_1_1_ndef_record.html">NdefRecord</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-attribs">Protected Attributes</a> &#124;
<a href="#properties">Properties</a> &#124;
<a href="class_ndef_library_1_1_ndef_1_1_ndef_record-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">NdefLibrary.Ndef.NdefRecord Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>An NDEF record contains a payload described by a type, a length, and an optional identifier.  
 <a href="class_ndef_library_1_1_ndef_1_1_ndef_record.html#details">More...</a></p>
<div class="dynheader">
Inheritance diagram for NdefLibrary.Ndef.NdefRecord:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_ndef_library_1_1_ndef_1_1_ndef_record.png" usemap="#NdefLibrary.Ndef.NdefRecord_map" alt=""/>
  <map id="NdefLibrary.Ndef.NdefRecord_map" name="NdefLibrary.Ndef.NdefRecord_map">
<area href="class_ndef_library_1_1_ndef_1_1_ndef_android_app_record.html" title="Creates the Android-specific Android Application Record. " alt="NdefLibrary.Ndef.NdefAndroidAppRecord" shape="rect" coords="351,56,692,80"/>
<area href="class_ndef_library_1_1_ndef_1_1_ndef_bt_secure_simple_pairing_record.html" title="Create an NDEF record for Bluetooth Carrier Handover according to the &quot;Secure Simple Pairing&quot; mechani..." alt="NdefLibrary.Ndef.NdefBtSecureSimplePairingRecord" shape="rect" coords="351,112,692,136"/>
<area href="class_ndef_library_1_1_ndef_1_1_ndef_handover_alternative_carrier_record.html" title="The Alternative Carrier record is used within the payload of the Handover Select record to describe a..." alt="NdefLibrary.Ndef.NdefHandoverAlternativeCarrierRecord" shape="rect" coords="351,168,692,192"/>
<area href="class_ndef_library_1_1_ndef_1_1_ndef_handover_error_record.html" title="The Error Record is used in the Handover Select Record to indicate that the Handover Selector failed ..." alt="NdefLibrary.Ndef.NdefHandoverErrorRecord" shape="rect" coords="351,224,692,248"/>
<area href="class_ndef_library_1_1_ndef_1_1_ndef_handover_select_record.html" title="Handover Select Record for the Connection Handover Standard. Its payload contains at least one refere..." alt="NdefLibrary.Ndef.NdefHandoverSelectRecord" shape="rect" coords="351,280,692,304"/>
<area href="class_ndef_library_1_1_ndef_1_1_ndef_icalendar_record_base.html" alt="NdefLibrary.Ndef.NdefIcalendarRecordBase" shape="rect" coords="351,336,692,360"/>
<area href="class_ndef_library_1_1_ndef_1_1_ndef_launch_app_record.html" title="Handles the Windows LaunchApp record format. " alt="NdefLibrary.Ndef.NdefLaunchAppRecord" shape="rect" coords="351,392,692,416"/>
<area href="class_ndef_library_1_1_ndef_1_1_ndef_mime_image_record_base.html" title="Stores a MIME type and image data for individual use or as a part of another record like the Smart Po..." alt="NdefLibrary.Ndef.NdefMimeImageRecordBase" shape="rect" coords="351,448,692,472"/>
<area href="class_ndef_library_1_1_ndef_1_1_ndef_sp_act_record.html" title="The Action record is a Local Type specific to the Smart Poster. " alt="NdefLibrary.Ndef.NdefSpActRecord" shape="rect" coords="351,504,692,528"/>
<area href="class_ndef_library_1_1_ndef_1_1_ndef_sp_mime_type_record.html" title="The Payload of the Type Record is a UTF-8-formatted string that describes a MIME type [RFC 2046] whic..." alt="NdefLibrary.Ndef.NdefSpMimeTypeRecord" shape="rect" coords="351,560,692,584"/>
<area href="class_ndef_library_1_1_ndef_1_1_ndef_sp_record.html" title="Handles the Smart Poster meta-record and is able to both parse and assemble a smart poster according ..." alt="NdefLibrary.Ndef.NdefSpRecord" shape="rect" coords="351,616,692,640"/>
<area href="class_ndef_library_1_1_ndef_1_1_ndef_sp_size_record.html" title="The Size Record contains a four-byte, 32-bit, unsigned integer, which contains the size of object tha..." alt="NdefLibrary.Ndef.NdefSpSizeRecord" shape="rect" coords="351,672,692,696"/>
<area href="class_ndef_library_1_1_ndef_1_1_ndef_text_record.html" title="The Text record as specified by the NFC Forum URI record type definition. " alt="NdefLibrary.Ndef.NdefTextRecord" shape="rect" coords="351,728,692,752"/>
<area href="class_ndef_library_1_1_ndef_1_1_ndef_uri_record.html" title="The URI record as specified by the NFC Forum URI record type definition. " alt="NdefLibrary.Ndef.NdefUriRecord" shape="rect" coords="351,784,692,808"/>
<area href="class_ndef_library_1_1_ndef_1_1_ndef_vcard_record_base.html" title="Stores a business card (vCard) in a MIME type record, allowing users to immediately add a contact to ..." alt="NdefLibrary.Ndef.NdefVcardRecordBase" shape="rect" coords="351,840,692,864"/>
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:ae8b72bae8f27a524d56bb048bb5fac7d"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ndef_library_1_1_ndef_1_1_ndef_record.html#ae8b72bae8f27a524d56bb048bb5fac7d">TypeNameFormatType</a> { <br />
&#160;&#160;<a class="el" href="class_ndef_library_1_1_ndef_1_1_ndef_record.html#ae8b72bae8f27a524d56bb048bb5fac7dace2c8aed9c2fa0cfbed56cbda4d8bf07">TypeNameFormatType.Empty</a> = 0x00, 
<a class="el" href="class_ndef_library_1_1_ndef_1_1_ndef_record.html#ae8b72bae8f27a524d56bb048bb5fac7dacd0faabacfe43fd7e0ed7a11928081af">TypeNameFormatType.NfcRtd</a> = 0x01, 
<a class="el" href="class_ndef_library_1_1_ndef_1_1_ndef_record.html#ae8b72bae8f27a524d56bb048bb5fac7dafecdc9105cdb68403017e8cee8420a63">TypeNameFormatType.Mime</a> = 0x02, 
<a class="el" href="class_ndef_library_1_1_ndef_1_1_ndef_record.html#ae8b72bae8f27a524d56bb048bb5fac7da3840cd8f73026713059f0ed0562c5493">TypeNameFormatType.Uri</a> = 0x03, 
<br />
&#160;&#160;<a class="el" href="class_ndef_library_1_1_ndef_1_1_ndef_record.html#ae8b72bae8f27a524d56bb048bb5fac7da1e5b5574ea6a6dfa34ff71a7c91f5d24">TypeNameFormatType.ExternalRtd</a> = 0x04, 
<a class="el" href="class_ndef_library_1_1_ndef_1_1_ndef_record.html#ae8b72bae8f27a524d56bb048bb5fac7da88183b946cc5f0e8c96b2e66e1c74a7e">TypeNameFormatType.Unknown</a> = 0x05, 
<a class="el" href="class_ndef_library_1_1_ndef_1_1_ndef_record.html#ae8b72bae8f27a524d56bb048bb5fac7da5ff3c6978f87d96febfdc8ed3899a97e">TypeNameFormatType.Unchanged</a> = 0x06, 
<a class="el" href="class_ndef_library_1_1_ndef_1_1_ndef_record.html#ae8b72bae8f27a524d56bb048bb5fac7da942d4e37dd5607ab68e54755540d4a47">TypeNameFormatType.Reserved</a> = 0x07
<br />
 }<tr class="memdesc:ae8b72bae8f27a524d56bb048bb5fac7d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Standardized type name formats, as defined by the NDEF record specification from the Nfc Forum.  <a href="class_ndef_library_1_1_ndef_1_1_ndef_record.html#ae8b72bae8f27a524d56bb048bb5fac7d">More...</a><br /></td></tr>
</td></tr>
<tr class="separator:ae8b72bae8f27a524d56bb048bb5fac7d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:aed1ca01c8e1ae8badbd82ca15629b596"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ndef_library_1_1_ndef_1_1_ndef_record.html#aed1ca01c8e1ae8badbd82ca15629b596">NdefRecord</a> ()</td></tr>
<tr class="memdesc:aed1ca01c8e1ae8badbd82ca15629b596"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create an empty record, not setting any information.  <a href="#aed1ca01c8e1ae8badbd82ca15629b596">More...</a><br /></td></tr>
<tr class="separator:aed1ca01c8e1ae8badbd82ca15629b596"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afa32a8b5ef05c72dbe740999f205d782"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ndef_library_1_1_ndef_1_1_ndef_record.html#afa32a8b5ef05c72dbe740999f205d782">NdefRecord</a> (<a class="el" href="class_ndef_library_1_1_ndef_1_1_ndef_record.html#ae8b72bae8f27a524d56bb048bb5fac7d">TypeNameFormatType</a> tnf, byte[] type)</td></tr>
<tr class="memdesc:afa32a8b5ef05c72dbe740999f205d782"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a new record with the specified type name format and type. Doesn't set the payload and ID.  <a href="#afa32a8b5ef05c72dbe740999f205d782">More...</a><br /></td></tr>
<tr class="separator:afa32a8b5ef05c72dbe740999f205d782"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4e87feda8270cc953a1eed5f416bc811"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ndef_library_1_1_ndef_1_1_ndef_record.html#a4e87feda8270cc953a1eed5f416bc811">NdefRecord</a> (<a class="el" href="class_ndef_library_1_1_ndef_1_1_ndef_record.html">NdefRecord</a> other)</td></tr>
<tr class="memdesc:a4e87feda8270cc953a1eed5f416bc811"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a new record, copying the information of the record sent through the parameter.  <a href="#a4e87feda8270cc953a1eed5f416bc811">More...</a><br /></td></tr>
<tr class="separator:a4e87feda8270cc953a1eed5f416bc811"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab4b8aca277bcb29ae2c7c972de5a19bc"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_ndef_library_1_1_ndef_1_1_ndef_record.html#ab898bd728196b4c255f2c2fbead68e24">Type</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ndef_library_1_1_ndef_1_1_ndef_record.html#ab4b8aca277bcb29ae2c7c972de5a19bc">CheckSpecializedType</a> (bool checkForSubtypes)</td></tr>
<tr class="memdesc:ab4b8aca277bcb29ae2c7c972de5a19bc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Checks the type name format and type of this record and returns the appropriate specialized class, if one is available and known for this record type.  <a href="#ab4b8aca277bcb29ae2c7c972de5a19bc">More...</a><br /></td></tr>
<tr class="separator:ab4b8aca277bcb29ae2c7c972de5a19bc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a45f00f9c0287be9b452d76a76964c8b9"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ndef_library_1_1_ndef_1_1_ndef_record.html#a45f00f9c0287be9b452d76a76964c8b9">CheckIfValid</a> ()</td></tr>
<tr class="memdesc:a45f00f9c0287be9b452d76a76964c8b9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Checks if the contents of the record are valid; throws an exception if a problem is found, containing a textual description of the issue.  <a href="#a45f00f9c0287be9b452d76a76964c8b9">More...</a><br /></td></tr>
<tr class="separator:a45f00f9c0287be9b452d76a76964c8b9"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr class="memitem:adeda2bbb574005e29f9f2becc134defa"><td class="memItemLeft" align="right" valign="top">byte []&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ndef_library_1_1_ndef_1_1_ndef_record.html#adeda2bbb574005e29f9f2becc134defa">_type</a></td></tr>
<tr class="memdesc:adeda2bbb574005e29f9f2becc134defa"><td class="mdescLeft">&#160;</td><td class="mdescRight">Byte array storing raw contents of the type. Use Type property to access it whenever possible.  <a href="#adeda2bbb574005e29f9f2becc134defa">More...</a><br /></td></tr>
<tr class="separator:adeda2bbb574005e29f9f2becc134defa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6f6ce247ec8bf2cdbc96c53752c1f749"><td class="memItemLeft" align="right" valign="top">byte []&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ndef_library_1_1_ndef_1_1_ndef_record.html#a6f6ce247ec8bf2cdbc96c53752c1f749">_payload</a></td></tr>
<tr class="memdesc:a6f6ce247ec8bf2cdbc96c53752c1f749"><td class="mdescLeft">&#160;</td><td class="mdescRight">Byte array storing raw contents of the payload. Use Payload property to access it whenever possible.  <a href="#a6f6ce247ec8bf2cdbc96c53752c1f749">More...</a><br /></td></tr>
<tr class="separator:a6f6ce247ec8bf2cdbc96c53752c1f749"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="properties"></a>
Properties</h2></td></tr>
<tr class="memitem:aaf90a19b1fd91617319996635247e9bc"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_ndef_library_1_1_ndef_1_1_ndef_record.html#ae8b72bae8f27a524d56bb048bb5fac7d">TypeNameFormatType</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ndef_library_1_1_ndef_1_1_ndef_record.html#aaf90a19b1fd91617319996635247e9bc">TypeNameFormat</a><code> [get, set]</code></td></tr>
<tr class="memdesc:aaf90a19b1fd91617319996635247e9bc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Indicates the structure of the value of the TYPE field.  <a href="#aaf90a19b1fd91617319996635247e9bc">More...</a><br /></td></tr>
<tr class="separator:aaf90a19b1fd91617319996635247e9bc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab898bd728196b4c255f2c2fbead68e24"><td class="memItemLeft" align="right" valign="top">virtual byte []&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ndef_library_1_1_ndef_1_1_ndef_record.html#ab898bd728196b4c255f2c2fbead68e24">Type</a><code> [get, set]</code></td></tr>
<tr class="memdesc:ab898bd728196b4c255f2c2fbead68e24"><td class="mdescLeft">&#160;</td><td class="mdescRight">An identifier describing the type of the payload.  <a href="#ab898bd728196b4c255f2c2fbead68e24">More...</a><br /></td></tr>
<tr class="separator:ab898bd728196b4c255f2c2fbead68e24"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1c8e8fdf3b2fb68910cf31b24951b68b"><td class="memItemLeft" align="right" valign="top">byte []&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ndef_library_1_1_ndef_1_1_ndef_record.html#a1c8e8fdf3b2fb68910cf31b24951b68b">Id</a><code> [get, set]</code></td></tr>
<tr class="memdesc:a1c8e8fdf3b2fb68910cf31b24951b68b"><td class="mdescLeft">&#160;</td><td class="mdescRight">An identifier in the form of a URI reference.  <a href="#a1c8e8fdf3b2fb68910cf31b24951b68b">More...</a><br /></td></tr>
<tr class="separator:a1c8e8fdf3b2fb68910cf31b24951b68b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a21f9db059b16a7359707ad9c754b9091"><td class="memItemLeft" align="right" valign="top">virtual byte []&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ndef_library_1_1_ndef_1_1_ndef_record.html#a21f9db059b16a7359707ad9c754b9091">Payload</a><code> [get, set]</code></td></tr>
<tr class="memdesc:a21f9db059b16a7359707ad9c754b9091"><td class="mdescLeft">&#160;</td><td class="mdescRight">The application data carried within an NDEF record.  <a href="#a21f9db059b16a7359707ad9c754b9091">More...</a><br /></td></tr>
<tr class="separator:a21f9db059b16a7359707ad9c754b9091"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>An NDEF record contains a payload described by a type, a length, and an optional identifier. </p>
<p>This class is generic and can hold the data of any kind of record. It follows the specification from the NFC forum for the data format.</p>
<p><a class="el" href="namespace_ndef_library_1_1_ndef.html">Ndef</a> Records should usually be placed within an <a class="el" href="namespace_ndef_library_1_1_ndef.html">Ndef</a> Message, which will make sure that for example the message begin / end flags are set correctly.</p>
<p>While the <a class="el" href="class_ndef_library_1_1_ndef_1_1_ndef_record.html" title="An NDEF record contains a payload described by a type, a length, and an optional identifier. ">NdefRecord</a> class only offers access to the payload as a byte array, you should rather use specialized sub classes, which offer convenient ways to handle data stored in the payload through easy access methods. Such classes are provided for several standardized types. </p>
</div><h2 class="groupheader">Member Enumeration Documentation</h2>
<a id="ae8b72bae8f27a524d56bb048bb5fac7d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae8b72bae8f27a524d56bb048bb5fac7d">&#9670;&nbsp;</a></span>TypeNameFormatType</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="class_ndef_library_1_1_ndef_1_1_ndef_record.html#ae8b72bae8f27a524d56bb048bb5fac7d">NdefLibrary.Ndef.NdefRecord.TypeNameFormatType</a></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">strong</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Standardized type name formats, as defined by the NDEF record specification from the Nfc Forum. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="ae8b72bae8f27a524d56bb048bb5fac7dace2c8aed9c2fa0cfbed56cbda4d8bf07"></a>Empty&#160;</td><td class="fielddoc"><p>Empty indicates that no type or payload is associated with this record. </p>
</td></tr>
<tr><td class="fieldname"><a id="ae8b72bae8f27a524d56bb048bb5fac7dacd0faabacfe43fd7e0ed7a11928081af"></a>NfcRtd&#160;</td><td class="fielddoc"><p>The NFC Forum well-known type follows the RTD type name format defined in the NFC Forum RTD specification. </p>
</td></tr>
<tr><td class="fieldname"><a id="ae8b72bae8f27a524d56bb048bb5fac7dafecdc9105cdb68403017e8cee8420a63"></a>Mime&#160;</td><td class="fielddoc"><p>The media type indicates that the TYPE field contains a value that follows the media-type BNF construct defined by RFC 2046. </p>
</td></tr>
<tr><td class="fieldname"><a id="ae8b72bae8f27a524d56bb048bb5fac7da3840cd8f73026713059f0ed0562c5493"></a>Uri&#160;</td><td class="fielddoc"><p>Absolute-URI indicates that the TYPE field contains a value that follows the absolute-URI BNF construct defined by RFC 3986. </p>
</td></tr>
<tr><td class="fieldname"><a id="ae8b72bae8f27a524d56bb048bb5fac7da1e5b5574ea6a6dfa34ff71a7c91f5d24"></a>ExternalRtd&#160;</td><td class="fielddoc"><p>NFC Forum external type indicates that the TYPE field contains a value that follows the type name format defined in [NFC RTD] for external type names. </p>
</td></tr>
<tr><td class="fieldname"><a id="ae8b72bae8f27a524d56bb048bb5fac7da88183b946cc5f0e8c96b2e66e1c74a7e"></a>Unknown&#160;</td><td class="fielddoc"><p>Unknown SHOULD be used to indicate that the type of the payload is unknown. This is similar to the "application/octet-stream" media type defined by MIME. When used, the TYPE_LENGTH field MUST be zero and thus the TYPE field is omitted from the NDEF record. </p>
</td></tr>
<tr><td class="fieldname"><a id="ae8b72bae8f27a524d56bb048bb5fac7da5ff3c6978f87d96febfdc8ed3899a97e"></a>Unchanged&#160;</td><td class="fielddoc"><p>Unchanged MUST be used in all middle record chunks and the terminating record chunk used in chunked payloads. </p>
</td></tr>
<tr><td class="fieldname"><a id="ae8b72bae8f27a524d56bb048bb5fac7da942d4e37dd5607ab68e54755540d4a47"></a>Reserved&#160;</td><td class="fielddoc"><p>Any other type name format; should be treated as unknown. </p>
</td></tr>
</table>

</div>
</div>
<h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="aed1ca01c8e1ae8badbd82ca15629b596"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aed1ca01c8e1ae8badbd82ca15629b596">&#9670;&nbsp;</a></span>NdefRecord() <span class="overload">[1/3]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">NdefLibrary.Ndef.NdefRecord.NdefRecord </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Create an empty record, not setting any information. </p>

</div>
</div>
<a id="afa32a8b5ef05c72dbe740999f205d782"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afa32a8b5ef05c72dbe740999f205d782">&#9670;&nbsp;</a></span>NdefRecord() <span class="overload">[2/3]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">NdefLibrary.Ndef.NdefRecord.NdefRecord </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_ndef_library_1_1_ndef_1_1_ndef_record.html#ae8b72bae8f27a524d56bb048bb5fac7d">TypeNameFormatType</a>&#160;</td>
          <td class="paramname"><em>tnf</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">byte []&#160;</td>
          <td class="paramname"><em>type</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Create a new record with the specified type name format and type. Doesn't set the payload and ID. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">tnf</td><td>Type name format to use, based on the tnf's standardized by the Nfc Forum.</td></tr>
    <tr><td class="paramname">type</td><td>Type string.</td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a4e87feda8270cc953a1eed5f416bc811"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4e87feda8270cc953a1eed5f416bc811">&#9670;&nbsp;</a></span>NdefRecord() <span class="overload">[3/3]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">NdefLibrary.Ndef.NdefRecord.NdefRecord </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_ndef_library_1_1_ndef_1_1_ndef_record.html">NdefRecord</a>&#160;</td>
          <td class="paramname"><em>other</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Create a new record, copying the information of the record sent through the parameter. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">other</td><td>Record to copy.</td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a45f00f9c0287be9b452d76a76964c8b9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a45f00f9c0287be9b452d76a76964c8b9">&#9670;&nbsp;</a></span>CheckIfValid()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool NdefLibrary.Ndef.NdefRecord.CheckIfValid </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Checks if the contents of the record are valid; throws an exception if a problem is found, containing a textual description of the issue. </p>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname"><a class="el" href="class_ndef_library_1_1_ndef_1_1_ndef_exception.html" title="Exception occured when parsing or assembling NDEF messages, records and their respective payloads...">NdefException</a></td><td>Thrown if no valid NDEF record can be created based on the record's current contents. The exception message contains further details about the issue.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>True if the record contents are valid, or throws an exception if an issue is found.</dd></dl>

<p>Reimplemented in <a class="el" href="class_ndef_library_1_1_ndef_1_1_ndef_launch_app_record.html#aa32cd61a427a7c95c7d777c7b4f1433f">NdefLibrary.Ndef.NdefLaunchAppRecord</a>, <a class="el" href="class_ndef_library_1_1_ndef_1_1_ndef_handover_alternative_carrier_record.html#ac21793db3f8e58a48a467bdb0fa2d91a">NdefLibrary.Ndef.NdefHandoverAlternativeCarrierRecord</a>, <a class="el" href="class_ndef_library_1_1_ndef_1_1_ndef_sp_record.html#acae79281ec634ac22611674c639a9481">NdefLibrary.Ndef.NdefSpRecord</a>, <a class="el" href="class_ndef_library_1_1_ndef_1_1_ndef_geo_record.html#a42e3162dfd107072640fc2e8d205a053">NdefLibrary.Ndef.NdefGeoRecord</a>, <a class="el" href="class_ndef_library_1_1_ndef_1_1_ndef_mailto_record.html#a02a31527644a17a49ee0a1b811a4db3e">NdefLibrary.Ndef.NdefMailtoRecord</a>, <a class="el" href="class_ndef_library_1_1_ndef_1_1_ndef_sms_record.html#a7281cab05fafd703d303ff8ae9e8e4b7">NdefLibrary.Ndef.NdefSmsRecord</a>, <a class="el" href="class_ndef_library_1_1_ndef_1_1_ndef_tel_record.html#a57204623b9023b1e8af39dc42c469a46">NdefLibrary.Ndef.NdefTelRecord</a>, and <a class="el" href="class_ndef_library_1_1_ndef_1_1_ndef_social_record.html#a38e3964eade28a494c4f986e020db24d">NdefLibrary.Ndef.NdefSocialRecord</a>.</p>

</div>
</div>
<a id="ab4b8aca277bcb29ae2c7c972de5a19bc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab4b8aca277bcb29ae2c7c972de5a19bc">&#9670;&nbsp;</a></span>CheckSpecializedType()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_ndef_library_1_1_ndef_1_1_ndef_record.html#ab898bd728196b4c255f2c2fbead68e24">Type</a> NdefLibrary.Ndef.NdefRecord.CheckSpecializedType </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>checkForSubtypes</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Checks the type name format and type of this record and returns the appropriate specialized class, if one is available and known for this record type. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">checkForSubtypes</td><td>If set to true, also checks for subtypes of the URL / SmartPoster record where the library offers a convenient handling class - e.g. for SMS or Mailto records, which are actually URL schemes.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Type name of the specialized class that can understand and manipulate the payload through convenience methods.</dd></dl>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="a6f6ce247ec8bf2cdbc96c53752c1f749"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6f6ce247ec8bf2cdbc96c53752c1f749">&#9670;&nbsp;</a></span>_payload</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">byte [] NdefLibrary.Ndef.NdefRecord._payload</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Byte array storing raw contents of the payload. Use Payload property to access it whenever possible. </p>
<p>Direct byte array access provided as virtual property can't be accessed from constructor.</p>

</div>
</div>
<a id="adeda2bbb574005e29f9f2becc134defa"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adeda2bbb574005e29f9f2becc134defa">&#9670;&nbsp;</a></span>_type</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">byte [] NdefLibrary.Ndef.NdefRecord._type</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Byte array storing raw contents of the type. Use Type property to access it whenever possible. </p>
<p>Direct byte array access provided as virtual property can't be accessed from constructor.</p>

</div>
</div>
<h2 class="groupheader">Property Documentation</h2>
<a id="a1c8e8fdf3b2fb68910cf31b24951b68b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1c8e8fdf3b2fb68910cf31b24951b68b">&#9670;&nbsp;</a></span>Id</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">byte [] NdefLibrary.Ndef.NdefRecord.Id</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span><span class="mlabel">set</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>An identifier in the form of a URI reference. </p>

</div>
</div>
<a id="a21f9db059b16a7359707ad9c754b9091"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a21f9db059b16a7359707ad9c754b9091">&#9670;&nbsp;</a></span>Payload</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual byte [] NdefLibrary.Ndef.NdefRecord.Payload</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span><span class="mlabel">set</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>The application data carried within an NDEF record. </p>

</div>
</div>
<a id="ab898bd728196b4c255f2c2fbead68e24"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab898bd728196b4c255f2c2fbead68e24">&#9670;&nbsp;</a></span>Type</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual byte [] NdefLibrary.Ndef.NdefRecord.Type</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span><span class="mlabel">set</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>An identifier describing the type of the payload. </p>

</div>
</div>
<a id="aaf90a19b1fd91617319996635247e9bc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aaf90a19b1fd91617319996635247e9bc">&#9670;&nbsp;</a></span>TypeNameFormat</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_ndef_library_1_1_ndef_1_1_ndef_record.html#ae8b72bae8f27a524d56bb048bb5fac7d">TypeNameFormatType</a> NdefLibrary.Ndef.NdefRecord.TypeNameFormat</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span><span class="mlabel">set</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Indicates the structure of the value of the TYPE field. </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>NdefLibrary/Ndef/NdefRecord.cs</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Wed Aug 16 2017 15:07:46 for NFC / NDEF Library for Proximity APIs by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
</body>
</html>
